<?php

// =================== 百度接口 ============================
//$AK = 'uoFAtV2RndTA6gDjfSZ4g1rn';
//$SK = 'fSQzjYnYPg4mwfwfXZoCyC4jFNM7wS51';

$AK = 'ECQKHpZFBdUaXTbQTc6IP7cv';
$SK = 'aRQDQ7N78tRisKzC90PNKSnrK7qUL53L';

$baiduApiUrl = "https://aip.baidubce.com/oauth/2.0/token";
$baiduAccessTokenURL = "$baiduApiUrl?client_id=$AK&client_secret=$SK&grant_type=client_credentials";

// =================== 群麦接口 ============================
// 测试环境
//$qmToken = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3Mjg1NDI5OTAsImV4cCI6NDg4MjE0Mjk5MCwiaXNzIjoicG9ydGFsIiwiYXVkIjoib3BlbkFQSSIsImFpZCI6IjYxNjZkODZmOTUyNmI3NzA1YTQ0OWRmMyIsInN1YiI6ImFwcDo2NzA3NzkwZTFmNWRhZTQyYjcxNjhkODMiLCJ1bmlxIjoiMTE2OTIyMzkzNzY3MDc3OTBlZjM3YzEyLjYwMzQ0NjE2In0.iSFoky4u8TDqjOdkmMWp-uufnF26j6XjXz51lCOs_I4';
//$qmApiUrl= 'https://staging-business-api.maiscrm.com/apps/underarmour/retailCampaign/interactiveScreen';
//
//$qmHeaders = ['x-access-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3Mjg1NDI5OTAsImV4cCI6NDg4MjE0Mjk5MCwiaXNzIjoicG9ydGFsIiwiYXVkIjoib3BlbkFQSSIsImFpZCI6IjYxNjZkODZmOTUyNmI3NzA1YTQ0OWRmMyIsInN1YiI6ImFwcDo2NzA3NzkwZTFmNWRhZTQyYjcxNjhkODMiLCJ1bmlxIjoiMTE2OTIyMzkzNzY3MDc3OTBlZjM3YzEyLjYwMzQ0NjE2In0.iSFoky4u8TDqjOdkmMWp-uufnF26j6XjXz51lCOs_I4'];
//$qmVersionURL = 'https://staging-business-api.maiscrm.com/apps/underarmour/retailCampaign/interactiveScreen/versions';

// 生产环境
$qmToken = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NDU4MjgyOTgsImV4cCI6NDg5OTQyODI5OCwiaXNzIjoicG9ydGFsIiwiYXVkIjoib3BlbkFQSSIsImFpZCI6IjYxODBlYTMyZTBkZjRiMTQ3MjcwNDIyOCIsInN1YiI6ImFwcDo2ODBmMzljYWJhYTg2ZjNiZDM0YjQyYzYiLCJ1bmlxIjoiMjY1NjExMzYzNjgwZjM5Y2FhNzA1NzAuNjQ5MTU1ODUifQ.86erjJyY8ciZt8UWZ8seX_qLuZrYeNjU9_KoLTB6DDw';
$qmApiUrl= 'https://business-api.maiscrm.com/apps/underarmour/retailCampaign/interactiveScreen';

$qmHeaders = ['x-access-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NDU4MjgyOTgsImV4cCI6NDg5OTQyODI5OCwiaXNzIjoicG9ydGFsIiwiYXVkIjoib3BlbkFQSSIsImFpZCI6IjYxODBlYTMyZTBkZjRiMTQ3MjcwNDIyOCIsInN1YiI6ImFwcDo2ODBmMzljYWJhYTg2ZjNiZDM0YjQyYzYiLCJ1bmlxIjoiMjY1NjExMzYzNjgwZjM5Y2FhNzA1NzAuNjQ5MTU1ODUifQ.86erjJyY8ciZt8UWZ8seX_qLuZrYeNjU9_KoLTB6DDw'];
$qmVersionURL = 'https://business-api.maiscrm.com/apps/underarmour/retailCampaign/interactiveScreen/versions';

return
    [
        'version'    => '1.0.0',
        'rights_ver' => '1.1.0', // rights 版本更新
        'debug'      => true,
        'conf' => [
            'baiduAccessTokenURL' => $baiduAccessTokenURL,
            'qmApi' => [
                'headers'   => $qmHeaders,
//                'token'     => ["access_token"=>$qmToken],
                'versions'  => $qmApiUrl.'/versions',
                'wxcode'    => $qmApiUrl.'/memberBenefit',
                'promotion' => $qmApiUrl.'/homeCampaigns',
//                'promotion' => $qmApiUrl,
                'goods'     => $qmApiUrl.'/goodsList',
            ],
//            'qmApi' => [
//                'headers' => $qmHeaders,
//                'qmVersion' => $qmVersionURL,
//
//                'token' => ["access_token"=>$qmToken],
//                'version' => 'https://api.pressm.cn/ua/demo/version',
//                'promotion' => 'https://api.pressm.cn/ua/demo/promotion',
//                'goods' => 'https://api.pressm.cn/ua/demo/goods',
//            ],
            'onlineTime' => [
                '10:00','10:15','10:30','10:45',
                '11:00','11:15','11:30','11:45',
                '12:00','12:15','12:30','12:45',
                '13:00','13:15','13:30','13:45',
                '14:00','14:15','14:30','14:45',
                '15:00','15:15','15:30','15:45',
                '16:00','16:15','16:30','16:45',
                '17:00','17:15','17:30','17:45',
                '18:00','18:15','18:30','18:45',
                '19:00','19:15','19:30','19:45',
                '20:00','20:15','20:30','20:45',
                '21:00','21:15','21:30','21:45',
                '22:00'
            ],
        ],

        'resource'=> [],
    ];
